
package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.Office;

public interface OfficeDao extends Dao {

    /**
     * Retrieves all of the offices
     */
    public List getOffices(Office office);

    /**
     * Gets office's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the office's id
     * @return office populated office object
     */
    public Office getOffice(final Integer id);

    /**
     * Saves a office's information
     * @param office the object to be saved
     */    
    public void saveOffice(Office office);

    /**
     * Removes a office from the database by id
     * @param id the office's id
     */
    public void removeOffice(final Integer id);
}

